import { Switch, Route } from '@modern-js/runtime/router';

import './App.css';
import Home from './views/Home';
import TestViews from './views/TestViews';

const App = () => (
  <Switch>
    <Route exact={true} path="/">
      <div className="container-box">
        <TestViews />
      </div>
    </Route>
    <Route path="/home">
      <div>
        <Home />
      </div>
    </Route>
    <Route path="*">
      <div>404</div>
    </Route>
  </Switch>
);

export default App;
